import pandas as pd

test_data = pd.read_csv("E:\\MarketData\\Stock\\index\\index_hs300.csv")
test_data["date"] = pd.to_datetime(test_data["date"])
test_data["week_day"] = test_data["date"].dt.weekday
test_data.to_csv("D:\\learn_and_test_data\\week_day_test.csv")

# 去时区
data = pd.read_csv("E:\data_bridge\\tick_au99.SHFE.csv", encoding="GBK")
dt = pd.to_datetime(data["datetime"])
dt2 = dt.dt.tz_localize(None)